package com.huang.array;

/**
 目标：
 掌握静态初始化数组，访问数组 修改数组
 */
public class Demo2_Array {
    public static void main(String[] args) {
        int[] ages = {29, 20, 34, 30};
        System.out.println(ages[0]);
        System.out.println(ages[1]);
        System.out.println(ages[2]);
        System.out.println(ages[3]);
        ages[0] = 20;
        System.out.println(ages[0]);
        System.out.println(ages[1]);
        System.out.println(ages[2]);
        System.out.println(ages[3]);

        System.out.println(ages.length);
    }
}